package com.coding365.service.code.dao;

import com.coding365.service.code.entity.LagouAuthCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LagouAuthCodeMapper {

    List<LagouAuthCode> selectAllAuthCode();

    void insertAuthCode(@Param("auth") LagouAuthCode lagouAuthCode);

    List<LagouAuthCode> selectAuthCodeWithEmail(String email);

    //选择时间最近的验证码
    LagouAuthCode selectLastAuthCodeWithEmail(String email);
}
